package com.corpgovernment.organization.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 开关与uid、orgId关联表
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "mb_org_switch_relation")
@SuppressWarnings("serial")
public class MbOrgSwitchRelation extends BaseEntity {
    /**
     * 开关主键
     */
    @Column(name = "switch_id")
    @OperateLogFieldDesc(value = "开关主键")
    private Long switchId;
    /**
     * 部门主键
     */
    @Column(name = "org_id")
    @OperateLogFieldDesc(value = "部门主键")
    private String orgId;
    /**
     * uid
     */
    @Column(name = "uid")
    @OperateLogFieldDesc(value = "用户id")
    private String uId;

    @Column(name = "is_deleted")
    private boolean isDeleted;
}
